﻿namespace LowCoding.Dto.Sys
{
    public class SysModuleTreeViewDto
    {
        public string id { get; set; }
        public int parentId { get; set; }
        public string parent { get; set; }
        public string label { get; set; }
        public string state { get; set; }
        public string iconCls { get; set; }
        public int CtgPlevel { get; set; }
        public TreeAttributesDto AttributesDto { get; set; }
        public List<SysModuleTreeViewDto> children { get; set; }

        public string IsOnline { get; set; }

        public string _icon;

        #region 采集点

        public string Code { get; set; }
        public string Type_Name { get; set; }
        public string Status_Name { get; set; }

        public string Isdel { get; set; }

        public string IsdelOne { get; set; }

        #endregion 采集点
    }

    /// <summary>
    /// 自定义属性
    /// </summary>
    public class TreeAttributesDto
    {
        public TreeAttributesDto(string _nodeType)
        {
            this.NodeType = _nodeType;
        }

        public TreeAttributesDto(string _nodeType, string _nodeValid)
        {
            this.NodeType = _nodeType;
            this.NodeValid = _nodeValid;
        }

        public string NodeType { get; set; }

        public string NodeValid { get; set; }
    }
}